-
Notifications
You must be signed in to change notification settings - Fork 11.9k
refactor: remove deprecated compiler option #32330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
75d1ecd to
7d8ff76
Compare
Removes usages of the `baseUrl` compiler option which is deprecated and will start throwing an error in TypeScript 6.
7d8ff76 to
b578c52
Compare
| }); | ||
|
|
||
| // TODO(crisbeto): the `baseUrl` here will trigger a deprecation error in TS6. We may | ||
| // have to opt out of it for this test since Webpack seems to depend on the `baseUrl`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The context here is that it should work without the baseUrl since the default has been ./ for a while, but it doesn't for some reason. I suspect something in Webpack might be depending on it. Once TS6 is out, we can opt out these tests from the deprecation error.
alan-agius4
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, this LGTM, though one of the test cases updates is incorrect.
| harness.expectFile(coveragePath).toNotExist(); | ||
| }); | ||
|
|
||
| it(`should collect coverage from paths in 'sourceRoot'`, async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the test. Coverage from node_modules is always ignored.
In this case, we want to ensure that coverage for local libraries is not included (IE: not included in node_module).
Removes usages of the
baseUrlcompiler option which is deprecated and will start throwing an error in TypeScript 6.